Code snippet

During work today, todays assignment is to test a website which recently went offline, I decided to write a tiny script that helps me answer the question “When do my commute card’s period end?” When I buy the card each month it only says “Purchase date + 30 days”.. So I never really know the exact day, unless I manually count, the card stops working.

So I wrote this lil’ script, and I wonder why I didn’t do this sooner -.-…