IOS App Help Required with Code

Hi, I’m trying to create an app that will give me a specific result when inputting numbers into Value A and Value B boxes.

The numbers put in these boxes need to be apart of a formula so the correct answer can be given.

The formula is:


I have attached some photos of the app for your understanding and where I’ve gone wrong. This is the first time creating an app so help would be appreciated. I also need the label at the bottom to show the answer for the formula.

Value A (qLabel) Quiescent Load
Value B (aLabel) Alarm Load

You need to use QLabel.text and ALabel.text

Also you shouldn’t call them “labels” when they are actually textFields.

You also should unwrap them and make sure they’re numbers before adding them into your equation