Fix math on time tracking