How I can convert following formula in PHP?

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

Recommended Answers

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 for diafol

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.