javascript stamp issue.

good day brother & sister bluebeam users,
our organization developed a stamp with a javascript prompt for a calculation.
as of late, the stamp has been giving an incorrect calculation.
any help/guidance would be greatly appreciated.
many thanks!
kilian.