updates number of hours spent