Conditional Formatting for Overdue Dates in List View

I think you are right about taking the time from DB. Check this sample for some ideas: