if end-time is edited to be before start-time, the total spent time can be less than 0.