I cross verified with my colleague and your approach and output is right. I was confused with the percentage calculation. Thanks for your help in brief.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!