As a cheep and 'no math required' way of doing this, just cut back the pump run time by an hour every few days and see how the pool looks. When it 'turns' nasty, go back to the previous run-time (after treating the 'nasty'), this will save you a bunch of computations which may or may not be right.