PL/SQL financial indicator calculation framework