move holiday calculations from spreadsheet to php code