fixed calculation for latetime/sunrise/sunset