I need to make a really simple calculation app to run in Windows from entering 3 numerical values in text boxes, clicking a button and outputting the result to a string.
The app is for creatinine clearance, it's a measure of renal function.
This is the Cockcroft-Gault formula:
(140 - age) X weight / (0.82 X serum creatinine)
The serum creatinine is derived from a blood test.
So I enter age, weight, serum creatinine and then I click the button and I get the creatinine clearance. For example a weight of 68 kg, 140 minus 67 years of age and a serum creatinine of 133 mg/dL = 46 mL/min.
How do I enter this formula as an expression? And do I use edit objects for the 3 value parameters and a string for the result?