For any date calculations I would start with following discussion post that contains a myriad of To Date functions and their use in Tableau. FAQ: To Date Calculations
Another great post in the Community Forums on dates is the: FAQ: Open & Close Dates
I would start with these resources first.
Then for creating heat maps I would try some of the following resources:
Hope this helps!