Mathematical model of a saline oscillator