Sorry, I have been getting a bit strong. I don't disapprove of what you are trying to do.
But please re-read your own post re your knowledge of DSL, PHP, mathematical ability and logic in the tool.
I see no harm in you trying to get the tool working and will happily give feedback on that if I see something that hasn't already been commented on. But maybe you should stop giving actual advice to others until you have got yourself up to a higher standard of knowledge on DSL? Particularly the difference between SNR and SNRM?
The FAQs available on the main site here, the explanations at DSLZone and Kitz and others are very good. Once you have assimilated those, and spotted where at least one of them is out of date, then your own wording of how it works should be fine.
And please work out how to reply to the post you are answering, not just hit Reply on the latest post in the thread

.
Bob: BT Broadband >> Prodigynet >>
Newnet Lite.
Purple Cloud for email, web space and domain.