Computes number of trading days in a given year.
a (scalar) – year.
n (scalar) – number of trading days in year.
A trading day is a weekday that is not a holiday as defined by the New
York Stock Exchange from 1888 through 2020. Holidays are defined in
holidays.asc. You may edit that file to modify or add holidays.