Telavivs insane pricing math thing
From Trinity Reign Wiki
buying_price = regular_price + regular_price *{(DS * Ov- DS * Un - MS * Ov) / (MS * DS * (DS - MS)) * N ^ 2 - (DS ^ 2 * Ov - DS^ 2 * Un - MS ^ 2 * Ov) / (MS * DM * (DS - MS) * N + Ov}
buying_price: the price you buy stuff at regular_price: the normal cost of the item DS: desired stock MS: Max Stock Un: Understorage (usually a negative number) Ov: overstorage N = Amount of item in stock
