Thank you! Your feedback has been delivered
Thank you! Your feedback has been sent

Create a simple webapp - Economic Value Calculator

I need a simple html application that would take three inputs.

  1. Enter your age you wish to retire 65
  2. Enter your current age. 25
  3. Enter your annual salary. 25,000

    The output would subtract item 2 from item 1,multiply the result by item 3. For example age to retire is 65 Current age is 25 Annual salary is $25,000 The output would be 1,000,000 because difference between ages 40 years and 40 x 25,000 is $1,000,000.

enter image description here

User Gravatar

Charles

Posted Mar 20 2014 2:00 UTC

$50


  • Assigned To avladev
  • Solved
  • javascript
    html
  • 768 Views

5 Replies


I'm working on your task using HTML and JS. will get back to you shortly.

User Gravatar

rashidul

Posted Mar 20 2014 6:33 UTC

This is DEAD SIMPLE with no styling (just functionality). If you need something more fancy let me know.

http://jsfiddle.net/egPeX/

User Gravatar

SimionBaws

Posted Mar 20 2014 6:46 UTC

Simple app with bootstrap and AngularJS.

http://jsfiddle.net/rsboarder/cQ5jx/

User Gravatar

rsboarder

Posted Mar 20 2014 7:01 UTC

http://jsfiddle.net/rashidul/2ka7x/

result formatted to $: http://jsfiddle.net/rashidul/2ka7x/1/

If you want result updated on every key press: http://jsfiddle.net/rashidul/2ka7x/2/

Added some margin and make text bold: http://jsfiddle.net/rashidul/2ka7x/3/

User Gravatar

rashidul

Posted Mar 20 2014 7:17 UTC

Mine uses Boostrap 3 and jQuery also accepts dollar sign and separators in the salary input. Outputs with $ (dollar sign) and thousands separator.

You can check it here: http://jsfiddle.net/77EWq/3/

User Gravatar

avladev

Posted Mar 20 2014 7:32 UTC

Solution

This didn't solve your task? Get your own custom solution.

Add a reply

By posting a reply on CodersClan you agree to our Terms & Conditions