some data analysis functions for freshbooks data