diff --git a/src/Company/formulas/favor.ts b/src/Company/formulas/favor.ts index 09edd1ca5..73790544b 100644 --- a/src/Company/formulas/favor.ts +++ b/src/Company/formulas/favor.ts @@ -3,12 +3,11 @@ // for information on how to calculate this export function favorToRep(f: number): number { - const raw = 25000 * (Math.pow(1.02, f) - 1); - return Math.round(raw * 10000) / 10000; // round to make things easier. - } - - export function repToFavor(r: number): number { - const raw = Math.log(r / 25000 + 1) / Math.log(1.02); - return Math.round(raw * 10000) / 10000; // round to make things easier. - } - \ No newline at end of file + const raw = 25000 * (Math.pow(1.02, f) - 1); + return Math.round(raw * 10000) / 10000; // round to make things easier. +} + +export function repToFavor(r: number): number { + const raw = Math.log(r / 25000 + 1) / Math.log(1.02); + return Math.round(raw * 10000) / 10000; // round to make things easier. +}