SQL
MySQL PERIOD_DIFF() Function
Return the difference between two periods: