Bug in total time spent calculation fixed