I believe your confusion is software and not code related. You get 2 different answers from 2 different programs!
Try a simple model in both programs which you have done a hand calculation for and see which program gets it correct.
This should be easy enough to do. So code or software deal or no deal?
_________________________
Best Regards,
John C. Luf