Order Past Due and Due Soon tasks. Move their calculation logic into the controller.