CalcBuilder Forum

Bond calculator

User Moegamat Alexander 2025-08-31 14:33:43

Hi we have tried applying every variable after studying your Amortisation Caclulator as a sample to get a Bond calculator to work we have even resorted to Gemini Ai for assistance with no success.
Please can you have a look and see what we are doing incorrectly as we just cannot get it to work.

User Moegamat Alexander 2025-08-31 14:36:12

The calculators can be found under the Resources menu

Moonsoft support 2025-09-01 09:19:48

Hi,
tried to access the site but it seems down at the moment, can you please update the ticket as soon as its ready for us to check? Also it would help if you could explain with more detail the problem that you have with your calculator.
Thanks ,regards
Silvia Martín
Moonsoft Team

User Moegamat Alexander 2025-09-02 17:15:36

my apologies I gave you an incorrect URL

Moonsoft support 2025-09-03 09:07:03

Hi,
we've checked one of the calculators at your backend (bond calculator 3), and although most of the configuration is correct, you have some problems at the php code section, probably because you've generated it as if it was a separated code on an isolated page, so there are some minor adjustments to make, as follows:

- remove the enclosing php tags, you're already executing php code at this section (remove first and last lines/ lines 1 and 59)
- remove the section where you initialize all the inputs and then try to recover them from the post (this step is already provided by the extension).
Lines 18,19,20,21,28,29,30,31
- (optional). you can remove the form field 'payment', as this is an output, it can just be calculated and then printed at the output without any configuration.
- and finally, you may want to print ##error## before the calculated results, just in case some of the validations you make at the code fails and want to show the user the information.

and then you should see your calculations results, please let us know if you need further help

Best regards
Silvia Martín
Moonsoft Team

...
List Manager

Build different lists for your site

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!