Calculates right quantam cost now.