Updated package subscription recurring calculation script