days calculation