Updated Rate calculation logic with PINV compared to INV