In addition to the levies provided for in section 1302.1 (relating to different and separate tax levies), if the council refuses or neglects to levy a sufficient tax to pay the debts due by the borough, a court may, after ascertaining the amount of the indebtedness of the borough, direct a writ of mandamus to the proper officers of the borough to collect by special taxation an amount sufficient to pay the indebtedness in one or more annual installments, as determined reasonable by the court.