Hello, please how can I make this type of interactive salary calulator? Has anyone got a tutorial they know of, or any steps I can follow. Ideally the calculator should allow people inout their salaries so it shows how long it takes a public figure to make the same amount, exactly like this:
when the public figure is chosen and the user is ready to display the output (ie, they've entered their salary in input_tf), call compareF passing the public figure's name (as a string).
output_tf.text = String(formatF(Number(input_tf.text)/this[public_figure+"_annual_income"]));
return 365*n+" days";