calculates amount/price on creation