Please could anyone help me with the formula of this question?.

A construction company will be fined for each day it is late completing its current project. The daily fine will be K4000(£) for the first day and will increase by K1000(£) each day.Based on its budget the company can only afford K60,000(£) in total fines.What is the maximum number of days it can be late?

the fine is just an arithmetic progression where the amounts (in thousands) are

a = 4
d = 1

You want n where

4+1(n-1) <= 60