Many thanks Warren. The solution is working very well.
Now, the users will not be able to submit the form when they did not click the compute button. All thanks to your help!! 😀
I have another issue with the compute button - not related to the solution you offered.
The compute button is able to compute the no of leave requested and stored it in a global variable - _requestedDays. However, the Duration field (which is a number field in Sharepoint) is not being updated with the _requestedDays when I do a SubmitForm to create the new record in Sharepoint.
I read from some forum post that I need to set the Default property of the Duration card to
If(!IsBlank(_requestedDays), _requestedDays, ThisItem.Duration) but somehow Duration field in Sharepoint is not updating. See screen capture below. How can the Duration field be updated? Please help.

