Template:APR/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:APR. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template page or section is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this template page has not been edited in several days, please remove this template. This template was last edited by T12 (talk | contribs) 9 years ago. (Purge) |
This template calculates an annual percentage rate (APR) from two values some time apart.
Use
The full syntax of this template is:
{{APR|old|new|years|form=}}
Parameters
- old is the required old value.
- new is the required new value.
- years is the required number of years between the old and new values.
- form is the optional result format parameter:
- form=percent – format result as a percentage (default)
- form=real – format result as a real number
Examples
{{APR|100|170|10}} yields 4.138%
{{APR|$149,000|$185,000|4.75}} yields 2.687%
{{APR|19.86|19.24|0.25}} yields -11.915%
{{APR|245.67|312.80|1.5}} yields 17.474%
{{APR|245.67|312.80|1.5|form=real}} yields 0.17474357665668
See also
- For help with this template, please contact the assigned maintenance group.