First draft for price calcualtion algorithm