Got calcPMT working