Sorry I didn't get a chance to answer your question [I am only at work Monday to Friday]. In the first case the total should be 35 and in the second case 52 (since as your code picked up there is more than 60 days between 1st April and 1st June)
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.