Hi there,
Make sure you are calling your objects with the right names...
Object names cannot have spaces, so when you are specifying "Given Regularity" or "Amount Given", both are wrong...
make sure to reference these values to the right objects
If you are not sure how to call these objects, you can always use the functionality of LiveCycle with Ctrl + Click on the object...
E.g.:
Make sure your cursor is in the Code Editor, while holding Ctrl, put your mouse over the object wanted, you should see your mouse change for an arrow pointing down, then click the left button on your mouse (still while holding down Ctrl)
In your editor, you should see the reference to the object that you want to retrieve the value from, this is how you should call your object
I hope this will help!