si_calculate function

Calculate flow using a pre-existing function