Either by the formula $$$n * 5.5 * p / 100$$$. Or by enumeration: in the first month, the loss is $$$n * p / 10$$$, in the second month, the loss is $$$2 * n * p / 10$$$, ... in the tenth month, the loss is $$$10 * n * p / 10$$$.