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


Posted Mar 20 2014 2:00 UTC


  • Assigned To avladev
  • Solved
  • javascript

5 Replies

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

User Gravatar


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.

User Gravatar


Posted Mar 20 2014 6:46 UTC

Simple app with bootstrap and AngularJS.

User Gravatar


Posted Mar 20 2014 7:01 UTC

result formatted to $:

If you want result updated on every key press:

Added some margin and make text bold:

User Gravatar


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:

User Gravatar


Posted Mar 20 2014 7:32 UTC


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