HOW TO CALCULATE AND USE THE CALENDAR