Log into your CNC module at:
Then look for a link called Troubleshooting. From there you will go to the Script Troubleshooter link and follow the directions to test your malfunctioning calendar script.
It will definitely be a start at getting clear, concise ideas as to what may be wrong with that particular script. Best of luck to you.