The "logical rules" are :
> from "if $P$, then $Q$" deduce : "if not $Q$, then not $P$
and :
> from "if $P$, then not $Q$" deduce : "if $Q$, then not $P$.
Thus, if we assume that :
> When the weather is stormy - The fish aren't sleep
has the same meaning of :
> If the weather is stormy, then the fish aren't sleep,
it has the "logical form" :
> "if $P$, then not $Q$.
Thus, from it we **can** deduce :
> If the fish sleep, then the weather is not stormy.
* * *
Instead, from "if $P$, then $Q$, we **cannot** deduce : "if $Q$, then $P$.