[#32] Divided price calculation into smaller methods