tldr; Please help me solve for x in the following equation:
$$\frac{tmp -\frac{ptr\cdot tv\cdot x}{12}}{\frac{ir}{12} / (1- (1+ \frac{ir}{12})^{-360})} =x$$
I'm trying to create a formula that will allow me to calculate the largest mortgage I can afford (x) based on a monthly budget given the following parameters:
tmp - Total monthly payment
ptr - Property tax rate
tv - Taxable value (percentage of home value that can be taxed)
ir - Interest rate of mortgage
I started with this formula:
$$\frac{tmp}{\frac{ir}{12} / (1- (1+ \frac{ir}{12}))^{-360})} = x$$
which works well, but it doesn't take into consideration property taxes. In city A 1000 a month might get me a 300k house but in city B, the property taxes are higher and I can only get a 280k house for the same monthly cost.
So to consider the property tax as a mandatory part of the monthly payment, I replaced $tmp$ with $tmp - \frac{ptr\cdot tv\cdot x}{12}$. I think this will work, but I need to get that pesky $x$ out of there.
So, given the final formula, how do I solve for x here?
$$\frac{tmp -\frac{ptr\cdot tv\cdot x}{12}}{\frac{ir}{12} / (1- (1+ \frac{ir}{12})^{-360})} =x$$