plot C=R*max(1/2, 1-R/800) from 0 to 960