How to calculate principal and interest in EMI