Timely Measurements Assigment
(d*d)+q*(p*2)-n