Date maths
About 3 years ago I had test a Salesforce implementation from one of the "big" partners.
I found this little gem for moving a payment date on by a quarter (pseudo-code):
date__c = date__c + (365/4)
and monthly
date__C = date++c + (365/12)
Oh the pain...