Calculate volume