Calculates the dates a given number of business days after a given date (today by default).
{note: preview=no}{public_holidays=["2017-01-02","2017-01-16","2017-02-20","2017-05-29","2017-07-04","2017-09-04","2017-10-09","2017-11-10","2017-11-23","2017-12-25","2018-01-01","2018-01-15","2018-02-19","2018-05-28","2018-07-04","2018-09-03","2018-10-08","2018-11-12","2018-11-22","2018-12-25","2019-01-01","2019-01-21","2019-02-18","2019-05-27","2019-07-04","2019-09-02","2019-10-14","2019-11-11","2019-11-28","2019-12-25","2020-01-01","2020-01-20","2020-02-17","2020-05-25","2020-07-03","2020-09-07","2020-10-12","2020-11-11","2020-11-26","2020-12-25","2021-01-01","2021-01-18","2021-02-15","2021-05-31","2021-06-18","2021-07-05","2021-09-06","2021-10-11","2021-11-11","2021-11-25","2021-12-24","2021-12-31","2022-01-17","2022-02-21","2022-05-30","2022-06-20","2022-07-04","2022-09-05","2022-10-10","2022-11-11","2022-11-24","2022-12-26","2023-01-02","2023-01-16","2023-02-20","2023-05-29","2023-06-19","2023-07-04","2023-09-04","2023-10-09","2023-11-10","2023-11-23","2023-12-25","2024-01-01","2024-01-15","2024-02-19","2024-05-27","2024-06-19","2024-07-04","2024-09-02","2024-10-14","2024-11-11","2024-11-28","2024-12-25","2025-01-01","2025-01-20","2025-02-17","2025-05-26","2025-06-19","2025-07-04","2025-09-01","2025-10-13","2025-11-11","2025-11-27","2025-12-25","2026-01-01","2026-01-19","2026-02-16","2026-05-25","2026-06-19","2026-07-03","2026-09-07","2026-10-12","2026-11-11","2026-11-26","2026-12-25","2027-01-01","2027-01-18","2027-02-15","2027-05-31","2027-06-18","2027-07-05","2027-09-06","2027-10-11","2027-11-11","2027-11-25","2027-12-24","2027-12-31","2028-01-17","2028-02-21","2028-05-29","2028-06-19","2028-07-04","2028-09-04","2028-10-09","2028-11-10","2028-11-23","2028-12-25","2029-01-01","2029-01-15","2029-02-19","2029-05-28","2029-06-19","2029-07-04","2029-09-03","2029-10-08","2029-11-12","2029-11-22","2029-12-25","2030-01-01","2030-01-21","2030-02-18","2030-05-27","2030-06-19","2030-07-04","2030-09-02","2030-10-14","2030-11-11","2030-11-28","2030-12-25"]}
{biz_day=days -> filter(
map(
seq(1, days * 2),
d-> {time: YYYY-MM-DD; shift=+{=d}D(skip=SAT,SUN)}),
d -> not includes(public_holidays, d)
)[days]}
{endnote: trim=yes}
{formmenu: 1; 2; default=3; 4; 5; 6; 7; 8; 9; 10; name=from} to {formmenu: 1; 2; 3; 4; default=5; 6; 7; 8; 9; 10; name=to} business days from {formdate: YYYY-MM-DD; name=start; formatter=d -> {time: MMM Do}}, which is - {=biz_day({=from})} - {=biz_day({=to})}