You can consider a variable as a placeholder for a single piece of text/code/expressions that can be reused throughout your script and or in expressions in your layout.
A master calendar is commonly a data table containing calendar information associated to a single date field. Typical master calendar contents are Year, Month, YearMonth , Week, Weekday; but it can be expanded with more information according to your needs.