Development of a Universal Correction Algorithm for Filter-Based Absorption Photometers