calc_rate.bg function

Calculate background oxygen uptake or input rates