Jump to content

Can't make Formula in PHP


domcu

Recommended Posts

hi,

I am trying to write formula in php but two days work and nothing please someone help. Here is formula how look mathematic:

formula.jpg

 

here is how look in dynamic:

A=((N*(100-d)/100)*r*(1+r/1200)^(12*y))/(1200*((1+r/1200)^(12*y)-1))

 

here is how I write in php:

(($_POST['N']*(100 - $_POST['d'])/100)*$_POST['r']*(1+($_POST['r']/1200)pow(12*$_POST['y'])/(1200*((1+$_POST['r']/1200)*(12*$_POST['y'])-1));

 

but script don't work... Please help me,

Thank you very much and sorry for my english.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.