find the interest paid at a rate of 8% on $4000 for 3 years

$4000 deposited into an account paying 8% compounded annually for 3 years derives from S = 4000(1.08)^3 = $5038.85 minus $4000 = $1038.85.