Make basic analysis functions returning absolute and relative profit