Hi,
I want to count the number of business-days between two date (%td) variables.
My data looks like this.
Name request_date answer_date
a 01mar2023 .
b 13jan2022 25jan2022
c 0dec2022 05jan2023
d 02jul2022 10jul2022
e 17feb2023 24feb2023
f 03mar2021 .
g 22may2021 .
I created 'stbcal' format file putting purpose, date format, range, omit holidays.
How can I use this 'stbcal' calendar file in my current STATA dataset, which has 'request date' and 'answer date' variables, to calculate the number of business days?
Thank you!
Comment