Use better string formatting and ternary operators to display the calendar