Apply arithmetic to time problems (#838)

Apply arithmetic to time problems (#838)

Calculate elapsed time, durations, etc.