Original Post
Hi, I really need some help rearranging a formula to display the difference of a total. Basically, what the code will do is take the necessary amount off an entered Duration so that it does not exceed a credit amount in 'pence'. I seem to have made one (much simpler) of it work but this one is stomping me. Heres the simple one - Difference = (Duration * hRate) - CreditAvailable; Duration2 = Duration1 - (Difference/hRate); Duration1 = (int)Duration2; And heres the one I'm trying to solve - Difference= (Duration1 - 120) * lRate + (hRate * 120) - CreditAvailable; ---------------------------------Heres where I'm trying things out - making duration2 the subject. Duration1 = (int)Duration2;