oh yeah what i meant is that- lemme just show you
var percentCalc = 100*1/cost; //turns out, it's just you're average whole number
var cost = 100;
if (bla bla bla) {
cost -= percentCalc //which arises here when the actual thing isnt a percent, instead a whole number
}