I've got three calculators covering 250 to 3000+ CP now. I've got them split into three atm just for ease of coding, but I'll figure out how to code it for one calculator soon.
Note: I'm using three formulae that describe three different ranges of CP best.
http://letspokego.blogspot.ch/p/cp-decay-rate-calculator.html