I am trying to build a function which takes in a specified date (2020 -08-01), checks the categorical criteria (y / n) and if true, outputs the sum or count of the true categori