Update calcPtn.coffee