$x= $principle # last month's value +$interest # interest between last payment and today -$payment # current remittence ;