How to make a calculator

Hello Wappler community. I am hoping someone can please guide me to create this calculator with Wappler using PHP server model. Getting the form fields is a breeze but creating the server actions to produce the output based on the formula below is what cannot wrap my head around. The link below is very similar to what I want to create. See This link

  1. fields on calculator should be as follows;
    •Monthly contribution = MC
    •Number of years = N
    •Interest rate = R
    •Projected value =FV

Denoted as MC, N, R and FV respectively

MC, N and R are fields that can be changed by the user as desired whiles FV which is future value or Projected Value is the computed figure based on the formula below.

MC * [(1 + r)^n – 1]
--------------------------
[r]

The bolded part of the formula in brackets is solved first before multiplying the outcome by MC
and r = R/12
And n = N*12
R is in percentage

Community Page
Last updated: