volume calculation