Breaking down a long math calculation

If it helps, here’s a jsfiddle I put together using an APR function from an APR formula article.

The jsfiddle that you can play with is at http://jsfiddle.net/pmw57/q0x47by2/