I have the below data fields. How to count the number of admissions pre 30 days and post 30 days from the programerolldate with asthma?

id programenrolldate admitvistdate dischargedate los asthma
1 23/01/2013 05/02/2015 14/02/2015 9 0
1 23/01/2013 20/02/2015 28/02/2015 8 0
1 23/01/2013 08/03/2015 04/04/2015 27 1
1 23/01/2013 07/05/2015 07/05/2015 27 1
1 23/01/2013 17/08/2015 17/08/2015 16 1

Appreciate your help.