fixed endday not resetting total