Day/Night switch implemented in Detail and Rate

Day will be between 5am and 4pm.