corrected rate==0 case for financial pmt fuction and the issue that asscalar does not take a scalar