I was recently using taCalcDueDateRM to ... get a due day, and got an error. There are several ways to troubleshoot this, there is a list of the eConnect errors at the bottom of this page... but I like to decrypt the stored proc and just look at the code.
Since I decrypted it, the code is below so that I'll have it for other clients