fixed float result returned from day_today function