You wouldn’t be able to get the code as the calculations are done by PHP which executes on the server side.
If it had ben done with Javascript you might have had a chance but it would still be a question of ethics as to whether you should use it or write your own.
Maybe you could ask the site owner if they would give you the code or allow you to submit your form to their PHP script in return for the appropriate accreditation.