Look it up in a table, and adjust for leap years.