Logging and performing mathmatical calc. during run?
Instead of using the datalog block from education version, you can create a custom version using the file access block. It's a bit more difficult, but more flexible...
You won't be able to directly use EV3 datalog management, but you can structure the file to be directly compatible with csv format, readable by spreadsheet programs.