How to Calculate the Difference Between Two Dates in MySQL
https://learnsql.com/cookbook/how-to-calculate-the-difference-between-two-dates-in-mysql/
DATEDIFF. Problem: You have two columns of the date type and you want to calculate the difference between them. Example: In the travel table, there are three columns: id, departure, and arrival. You'd like to calculate the difference between arrival and departure, or the number of days from arrival to departure inclusively.
DA: 14 PA: 6 MOZ Rank: 13 Up or Down: Up