detailed price calculation