The burn rate formula
Two formulas cover everything. Gross burn is what you spend. Net burn is what you actually lose once revenue is counted:
gross burn = money out in the month net burn = money out - money in runway = cash in bank / net burn
Net burn is the number that decides how long you have. €180,000 in the bank with €52,000 going out and €28,000 coming in is €24,000 of net burn, which is 7.5 months of runway. If revenue covers your costs, net burn is zero and runway stops being the constraint.
One caveat that catches founders out: a one-time cost inflates the month it lands in. A €10,000 legal bill is real cash, but it will not repeat, so strip it out before projecting forward or your runway will look shorter than it is. For the longer version, read What is burn rate? and the two formulas you need.