Calculus problem: A drug manufacturer has developed a time-release capsule with the number of milligrams of the drug in the bloodstream given by
S = 40
− 560
+ 1960
where x is in hours and 0 ≤ x ≤ 7. Find the average number of milligrams of the drug in the bloodstream for the first 7 hours after a capsule is taken. (Round your answer to the nearest whole number.)
Solution: _____ mg