linear_total_cost: Compute total cost as a linear function of time
Description
This function returns the total cost of raising n recruits to
time. The curve across time can only be linear
with parameters int and beta, but can be non-linear with
respect to recruits