improved: adding task starting in the past now has current system time as end time and the corresponding duration