Opacity is inverse of transmission. So you calculate how much light can pass through and then calculate opacity = 1 - transmission. So you first calculate how much you can see under surface with fresnel. Then you calculate how much you can see bottom of sea.(exp(-thickness * distance). You multiply those and you get transmission.