What determines injury from electricity is amps, which is the potential difference(voltage) of the thing you're tossing in divided by the resistance of the medium it's traveling through. Voltage would be given, so we have to look at resistance.
A general formula for resistance is:
R = (p*l)/A
where p is resistivity, l is length of the resistor (in this case, the distance between you and the voltage source), and A is the cross-section of the medium.
Right off the bat, we see that the math for this is nearly impossible. Since water itself doesn't conduct electricity, it is highly dependent on the ionic content and concentration of the water. Also, the ocean is not a wire or linear rod or anything of the sort, which is what the general formula mainly address. The voltage source would have 3D medium around it, and frankly I don't know what would happen here. I haven't studied how electricity behaves if it's surrounded by a conducting medium. Does it dissipate out like a wave? Pick one point and travel through like lightning through air? Shit itself and die from confusion? No clue.
Formulating an equation would require probabilistic math and lots of data and lots of











However, we can still examine the general formula and use it as a starting place.
Resistance is directly proportional to distance. Doubling your distance doubles your resistance. So it's easy enough to do the math on this to rough out the estimate. Find whatever the amps are in a pool, work back for the resistance, then keep increasing the distance until the amps fall below a lethal range. That doesn't take into account the cross-section, but that's intended pretty much 100% for wires or concentrated conductors. I'm not sure how to adapt it to a 3D medium, like I said.
Sorry I wasn't of more use. Just stay out of all electrified water, I guess.