login
Forgot?
Login with Facebook

Don't have an account? Register one now!

Make plugin, Calculate Number and Display Chart

Bids 
2
Avg Bid
$215 USD
CLOSED
  • Project ID:

    790634
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

We have some php code that allows user to enter some data. We need to make this code into a plugin? so that it can be used on the frontend to enter some data, store data in a table and then use some formulas to calculate a number for the data entered. The data entered by user will consist of (number, date) pairs and the formulas for calculation are provided below. Once number is generated we create a chart by saving entry in plotalot table so that chart can be displayed on user front end using plotalot plugin example: { plotalotid id="3"}
Once user click submit, data is saved in table and a number R is calculated from the data using the following formula:

NPV = sum [ value(i)/(1+R)^t(i) ] where value(i) and t(i) are number and time interval from table.

To calculate R, we run random tests to find NPV(R1) >0 and NPV(R0) <0

We then use following code to find R where NPV(R) =0.

// Assumption: One of f(a) and f(b) is &#8805; 0 and the other is &#8804; 0
if f(a) <= 0 then
lo := a; hi := b
else
lo := b; hi := a
endif

mid := lo + (hi-lo)/2
while (mid &#8800; lo) and (mid &#8800; hi) do
if f(mid) &#8804; 0 then
lo := mid
else
hi := mid
endif
mid := lo + (hi-lo)/2
endwhile

return mid

Skills required:

Joomla, PHP

Project posted by:

mgrech Canada
(3 Reviews)

Last seen:

If you are the project creator or one of the bidders, please Log In for more options.


All Bids ()

ahtsolutions Viet Nam
New_small.jpg
ahtsolutions
Viet Nam From Viet Nam     Gold Member     Online
  US English Level 1 (95%, 71st percentile)
  General Freelancer Orientation (85%, 95th percentile)
$280 in 6 days 
$84 Milestone Requested
over 1 year ago
4.8

8.2

218 Reviews
73% Completion Rate
We are a web design, development company experts. Now, we are having 5 groups working on LAMP and they are very experts in Magento, Joomla&VirtueMart, Wordpress, Osc, Zencart, Creloaded, Drupal……. Please check ... more
We are a web design, development company experts. Now, we are having 5 groups working on LAMP and they are very experts in Magento, Joomla&VirtueMart, Wordpress, Osc, Zencart, Creloaded, Drupal……. Please check PMB for our profile&portfolio. That would be pleasure if we can get a opportunity to work with you. Thanks a lot! ArrowHiTech Jsc! less
asalahov Russian Federation
Snapshot_20111129_3_2.jpg
asalahov
Russian Federation From Russian Federation     Offline
  General Freelancer Orientation (80%, 90th percentile)
$150 in 3 days 
$150 Milestone Requested
over 1 year ago
0.0

0.0

3 Reviews
12% Completion Rate
Let's get id done then.