I am new to android. And i am making mortgage application. I want to find the monthly interest with following equation.

M= (P \*(J/1-(1+J)^-n)) + T

I have received all the values of different fields .But i don't understand how to implement with this equation.

Please suggest me or guide me the way to do so.

Thanks