Framework for estimating indirect costs in animal health using time series analysis