How I can convert following formula in PHP?

P × r × (1 + r)^n / ((1 + r)^n - 1)

Recommended Answers

What do the values represent? I.e. P, r, etc.. I'm guessing n is the current position in the matrix?

Jump to Post

All 2 Replies

What do the values represent? I.e. P, r, etc.. I'm guessing n is the current position in the matrix?

Member Avatar

Looks like stats

//EDIT

DIY

a^b = pow(a,b) [order/index/power]

x = * [multiplication]

Remember PIDMAS/BODMAS/BIDMAS/PODMAS or neverending acronyms all meaning the same thing

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.