Extracted time report logic from the controller