textbox calculations

I have developed a price label using LibreOffice Writer.

I want to use the values of two textboxes to populate the third.

 Savings Percent = (Retail Price - Discounted Price) / Retail Price

I would love to upload the file but it exceeds the 2MB limit. I may be able to email it from my personal email to anyone willing to evaluate.

I am a novice to this software and programming and appreciate whatever assistance is provided.

Thank you

Streub

Hello @Streub,

Whenever the question is about “Writer Textboxes”, it needs to be explained exactly which kind of Textboxes are meant.

Are these Text Boxes inserted via the menu "Insert / Text Box", or via the menu "Insert / Form Control / Text Box" ? It matters a lot for the answer.