def daily_cost(lam=0.88, intercept=160):
    """
    Return the expected daily cost for machine with lam and intercept
    """
    # for a poisson distribution, E(X) = lam, Var(X) = lam, 
    # since E(X-E(X))^2 = E(X^2) - (EX)^2, 
    # then E(X^2) = Var(X) + (EX)^2
    return intercept + 40*(lam + lam**2)