Forest County appeals two judgments entered against Wesley Goode to enforce FOREST County, WI Zoning Ordinance § 5.03.10. The County appeals the judgment filed October 16, 1996, denying its request for an injunction ordering Goode to relocate *221his house to comply with the fifty-foot setback requirement, asserting the trial court erroneously exercised its discretion. The County also appeals the judgment filed December 2, 1996, ordering Goode to pay an $8,540 forfeiture, asserting the trial court erred in calculating the number of days of violation. Because we determine the trial court erroneously exercised its discretion by refusing to grant the injunction, we reverse. Regarding the forfeiture, we hold the trial court incorrectly calculated the number of days of violation. Therefore, we remand this matter to the trial court for a determination of the per diem forfeiture.
The underlying facts, while somewhat lengthy, are not disputed. Goode owned two adjoining lakefront lots. The parcel purchased in 1988 had an existing structure located twenty-nine feet from the ordinary high water mark (OHWM) of Ground Hemlock Lake. In 1992, Goode purchased the adjoining parcel. He decided to tear down the building on the first parcel and construct a new residence on the entire property.
In June of 1993, Dawn Schmidt, Forest County zoning administrator, met with Goode at his property, and together they measured and staked a distance of fifty feet from the OHWM. Goode then obtained a building permit to construct the new house fifty feet from the lake.1
*222Goode then hired Dan Stampfl to assist with construction of the new residence. Stampfl arranged for Flannery Trucking to perform the excavation. Prior to excavation, Stampfl and Flannery observed the stakes marking the fifty-foot setback. After completion of the excavation but prior to pouring the concrete footings and cement walls, Stampfl remeasured and restaked the fifty-foot distance from the lake. Stampfl's measurement and placement of the stakes were incorrect; the measurement on the southern point was correct at fifty feet, but the stake at the northern point was only thirty-five feet from the water's edge. The record does not reveal the reason for the incorrect measurements.
Construction of the residence and finish work of the interior continued without interruption until completion. Stampfl's measuring error was not discovered until after the building was completely finished. In March of 1994, a homeowner contacted Schmidt and said there may be a problem with the setback at the Goode property. In May of 1994, Schmidt returned to the Goode residence and measured the distance from the lake to the house, and confirmed the discrepancy in the thirty-five-foot distance from the lake to the northern corner and the fifty-foot distance from the lake to the southern corner. On May 19, 1994, Schmidt advised Goode by letter that the location of his residence violated the fifty-foot setback requirement of § 5.03.10. Goode responded by letter stating that the violation was unintentional and requesting a meeting with the zoning committee. Goode's request for a variance after the fact was denied. The County then initiated these proceedings for an injunction to require Goode to comply with setback requirements and for a forfeiture because of his noncompliance with the zoning ordinance.
*223In September 1996, the matter was tried to the court. The trial court denied the County's request for injunctive relief and set the matter for a hearing to determine the forfeiture. At the forfeiture hearing on November 7, 1996, the trial court set a $35 per diem forfeiture and imposed it for the time period from May 19, 1994, the date of notice of the violation until January 18, 1995, the commencement of a formal action by the County, a total of 244 days. The court also imposed costs of $814.58, for a total forfeiture of $9,354.58. This appeal by the County followed.
INJUNCTION
The County first asserts the trial court's denial of its request for an injunction was an erroneous exercise of discretion. The County reasons that § 5.03.10 prescribes the setback distance, that Goode's residence violates the ordinance, that it is authorized to seek injunctive relief by § 59.69(11), STATS., and that where it has proven an ordinance violation, it is entitled to the injunctive relief sought. Forest County contends the trial court improperly resorted to a balancing of equities analysis based on its interpretation of County of Columbia v. Bylewski, 94 Wis. 2d 153, 288 N.W.2d 129 (1980).
Second, the County contends the trial court's refusal to grant the injunction is a usurpation of the zoning board's authority. Here, the board refused to issue Goode a variance allowing his residence to remain in its present location in violation of the County's zoning ordinance. The trial court found the variance was properly denied. It is the County's position that the trial court's refusal to grant the injunction under these circumstances allows the violation to con*224tinue and effectively invalidates the board's prior decisions in the matter.
Last, the County maintains the injunction is. necessary to protect the public's right to rely on enforcement of zoning ordinances. It argues the court's decision sets a dangerous precedent because the cumulative effect of uncorrected violations undermines the purpose of the zoning plan and ordinances.
Goode responds that § 59.69(11), Stats., sets a discretionary standard for the court to follow when considering a request for injunctive relief in a suit to enforce a zoning ordinance. Also, he relies on Bylewski to support his position that the trial court properly engaged in a balancing analysis and appropriately denied the County's request for injunctive relief. We are not persuaded.
Goode's reliance on § 59.69(11), Stats., that forfeitures must be ordered but that injunctions are committed to the court's discretion, ignores the plain meaning of the statute. The construction of a statute or ordinance is a question of law we review de novo. Eastman v. City of Madison, 117 Wis. 2d 106, 112, 342 N.W.2d 764, 767 (Ct. App. 1983). Section 59.69(11) sets forth the remedies available to the County to effectuate enforcement of zoning ordinances. The statute clearly states that ordinances shall be enforced by appropriate forfeitures, and goes on to explicitly state that the County, or an affected property owner, also has the discretion to pursue injunctive relief to achieve compliance. The statute does not, as Goode suggests, create a discretionary standard for the trial court to follow in determining whether injunctive relief is warranted.
*225We next address Goode's argument that the trial court's decision was proper under Bylewski. Normally, injunctive relief is ordered in the discretion of the trial court, and this court will not change the trial court's decision unless it is an erroneous exercise of discretion. Village of Sister Bay v. Hockers, 106 Wis. 2d 474, 481, 317 N.W.2d 505, 508 (Ct. App. 1982). However, where a trial court bases its decision on a mistaken view of the law, its decision constitutes an improper exercise of discretion as a matter of law. State v. Trudeau, 139 Wis. 2d 91, 103, 408 N.W.2d 337, 342 (1987). Here, the trial court concluded that once it had determined that a violation had occurred and continued to occur, it was compelled to balance the equities and, in its discretion, determine whether to grant or deny the request for injunction.
Goode asserts that Bylewski directs the trial court in this case to examine and balance the competing equities and interests of the parties.2 However, the present case is factually distinct from Bylewski.3 *226Goode's case presents the particular issue of the court's discretionary role in the case of a proven, continuing statutory zoning violation. The struggle to apply equitable principles in the modern statutory setting is evident in Bylewski. While Bylewski began to grapple with the application of equitable maxims in the statutory context, we are faced with a more complex situation of determining whether the court's withholding of injunctive relief in the face of a proven, continuing statutory zoning violation is an appropriate exercise of discretion.
The guidance Bylewski provides for the trial court in this case is as follows:
In an ordinance violation, the municipality need only introduce the ordinance, and establish by a preponderance of the evidence, facts sufficient to demonstrate that the defendant has violated such ordinance before the court imposes a forfeiture. While, on the other hand, a suit for an injunctional order is addressed to the discretion of the court and requires that there be a balancing of the competing equities and interests involved."The true inquiry in [determining whether to grant injunctional relief-prohibiting the continuation of an unlawful use or the issuance of an order for the removal of a nonconforming building or structure] is whether the building or structure is legally usable (or modifiable *227and legally usable) and is intended to be used for a main or accessory use which is permitted by the applicable ordinance or by-law." Town of Sterling v. Poulin, 2 Mass.App. 562, 316 N.E.2d 737, 739 (1974). See also 82 Am.Jur.2d Zoning and Planning § 252 at 787 (1976). "However, where it has been clear that the offending building or structure could not be utilized for any purpose permitted in the pertinent zoning district, relief has been extended to include an order for the removal of the building or structure." Id. at 739.
Id. at 167, 288 N.W.2d at 136 (emphasis added).
The trial court found that Goode's residence was built in violation of the ordinance; that an application for a variance had been filed and properly denied; and that the violation would continue unless relocation of the structure occurred. Thus, "the true inquiry in [determining whether to grant . . . the issuance of an order for the removal of a non-conforming building or structure] is whether the building or structure is legally usable." Id. at 167, 288 N.W.2d at 136. The true focus of the trial court's inquiry is whether the Goode residence could in any way continue to stand in accordance with the ordinance requirements. Based on its earlier finding that the setback on the northern corner of the house was thirty-five feet, the question was already answered, and it was an improper exercise of discretion at that point to deny the County's request for an injunction and order requiring Goode to comply with the fifty-foot setback as required in § 5.03.10.
We recognize the result in Goode's case has a harsh effect, and we are sympathetic to his plight. However, the trial court's refusal to issue an injunction ordering Goode to relocate his residence in compliance *228with the fifty-foot setback requirement is, in effect, a judicial granting of a variance to the County zoning ordinance, a matter that had already been decided by the entity vested with the authority to make that determination. See § 59.694(7), Stats. Permitting a court to refuse to grant an injunction requiring a defendant to comply with the zoning ordinance would be to usurp the legislative function.4 Specifically, in this case, if Goode can continue the undisputed unlawful use of his property after complying with only the forfeiture, the effect of the trial court's judgment would be to rezone the land as a variance from the County's ordinance, notwithstanding the fact that the power to do so is reserved solely to the County. In summary, the trial court's refusal to grant injunctive relief, when the refusal results in the unconstrained continuation of a statutory violation, is not an appropriate exercise of discretion.
In addition, the legislative decision to allow municipalities to pursue injunctive relief to effectuate compliance with the ordinance implies entitlement to the relief sought upon meeting the burden of proof. It also takes into consideration a balancing of the public harm and the private cost. Statutory provisions *229" 'which authorize a governmental agent to sue to enjoin activities deemed harmful by the [legislature] are not designed to do justice to the parties but to prevent harm to the general public.'" See Town of Sherburne v. Carpenter, 582 A.2d 145, 148 (Vt. 1990) (quoting Ackerman v. Tri-City Geriatric & Health Care, Inc., 378 N.E.2d 145, 149 (Ohio 1978)).5
We also determine that the trial court's refusal to grant injunctive relief is a misuse of discretion because it infringes on the public's right to enforcement of zoning ordinances. See Jelinski v. Eggers, 34 Wis. 2d 85, 93, 148 N.W.2d 750, 755 (1967). In addition, the danger of the cumulative effect of allowing violations to continue interferes with the general purpose of zoning laws, which is to promote the general welfare by providing a stable environment for the orderly development of a community. See 83 Am.Jur.2d Zoning and Planning § 70 (1992); see also Hixon v. PSC, 32 Wis. 2d 608, 631-32, 146 N.W.2d 577, 588-89 (1966).
It would seem apparent that the courts should not use their equitable powers to permit a proven violation of the law to continue without consequence. The dissent comments that our decision today represents a radical departure from established guidelines for granting or denying injunctive relief. To the legally-trained mind, our decision limiting the court's discretionary role in the equity arena may appear impertinent, but we find it far less disturbing than the proposition that courts, under the mantle of balancing *230the equities, can permit defendants to violate statutes with impunity. One should not be permitted at the trial court's discretion to purchase through forfeitures a variance from a zoning code.
FORFEITURE
Forest County next asserts the trial court erred when it calculated the forfeiture using 244 days, the number of days from the notice of the violation until Forest County filed the complaint. The County argues that under Village of Sister Bay, the correct figure for computing the forfeiture is 861 days, representing the number of days from the filing of the complaint until the time of trial. We agree.
"[We are not] bound by a finding of a trial court that is based on undisputed evidentiary facts when the finding is essentially a conclusion of law." Id. at 479, 317 N.W.2d at 507. Forest COUNTY, WI ORDINANCE § 20.05.1 provides that: "Any person who violates this ordinance shall be subject to a fine up to $200.00, plus costs of prosecution. . . . Each day the violation continues shall be considered a separate offense." The undisputed evidence in this case is that Goode's residence remained in continuous violation of § 5.03.10 from May 19, 1994, the date of the commencement of the action, until September 27,1996, the date of trial, a total of 861 days.
Goode argues that since §20.05.1 is silent as to when a violation commences and as to a method of calculating the period of violation, the trial court did not err by basing the forfeiture on a period of 244 days. Goode also attempts to distinguish Sister Bay from this case, arguing that the owners in that case recéived a continuing economic benefit in the form of rents and, *231therefore, a continuous period of forfeiture in that case was proper. We are not persuaded.
The court in Sister Bay accumulated the forfeiture through the time of trial, stating that since the presumption of innocence does not apply in a civil forfeiture action, and the owners had notice of the violations, they could have corrected the violations. The court found the harm to the community was, therefore, continuous, and that the assessment was fair in light of the owners' continued benefit during that period of time. Id. at 480, 317 N.W.2d at 508.
Goode had notice of the violations from the time of commencement of the action through the time of trial, the violations were continuous, and Goode had the benefit of the use of his residence during that period of time. Section 20.05.1 provides that each day is a separate violation. The determination of number of days of violation based on the undisputed evidence is essentially a conclusion of law. The trial court's finding of 244 days conflicts with the undisputed evidence that the building violated the setback continuously from May 19, 1994, until September 27, 1996. We hold the proper basis for determining the total forfeiture is 861 days, calculated from the date of the commencement of the action until the time of trial.
The County asks this court to amend the amount of the forfeiture to $30,135, which represents the trial court's $35 per day forfeiture imposed for 861 days. We decline to amend the forfeiture as the County suggests. Rather, we reverse and remand to the trial court for a determination in its discretion of the per diem forfeiture to be imposed for the period of 861 days.
By the Court. — Judgments reversed and cause remanded.
The permit was issued in accordance with Forest County, WI ORDINANCE § 5.03.10, which provides in pertinent part:
A reduced setback from the waterline may be permitted by the zoning administrator where there are at least five main buildings within 500 feet of the proposed site that are built to less than the required setback. In such cases, the setback shall be the average of the nearest main buildings on each side of the proposed site, except that in no case shall the setback be less than 60 feet. (Emphasis added.)
The language Goode relies on to support his contention that the trial court was compelled to engage in a balancing analysis is taken out of context. Goode cites the following language: " '[F]inally, injunctive relief is addressed to the sound discretion of the trial court; competing interests must be reconciled and the plaintiff must satisfy the trial court that on balance equity favors issuing the injunction.1" County of Columbia v. Bylewski, 94 Wis. 2d 153, 163, 288 N.W.2d 129, 135 (1980) (quoting Pure Milk Products Co-op v. National Farmers Org., 90 Wis. 2d 781, 800, 280 N.W.2d 691, 700 (1979) (emphasis added)). The foregoing applies to the Court's discussion distinguishing the requirements for proving irreparable harm when granting injunctive relief to municipalities.
In Bylewski, the county sued a landowner for replacing his existing mobile home with a new one in violation of the county *226ordinances. The forfeiture action was filed and heard in small claims court. The county court did not impose a forfeiture, as requested in the pleadings, but issued an injunction, sua sponte, ordering removal of the mobile home. The court reversed, holding the county court in a small claims action lacked authority to order injunctive relief. It was in that context that the court discussed the applicability and requirements of injunctive relief.
There is a split of authority whether a municipality must show that, on balance, the equities favor issuance of an injunction. Some states hold that it is not appropriate for the trial court to balance the equities in a statutory injunction case, reasoning that to do so would usurp the legislative function and, in practical effect, grant a variance, thereby invading the purview of the zoning board. See Town of Sherburne v. Carpenter, 582 A.2d 145, 147-48 (Vt. 1990). Other states hold that the presence of a statute authorizing injunctive relief does not eliminate the trial court's discretion to balance the equities. Id. at 148.
Town of Sherburne held the trial court has only limited discretion to refuse to issue injunctive relief where a municipality seeks injunctive relief for a zoning ordinance violation. Id. at 148-49 (Declined to extend to case between private landowners in Richardson v. City of Rutland, 671 A.2d 1245 (Vt. 1995)).
"However, where it has been clear that the offending building or structure could not be utilized for any purpose permitted in the pertinent zoning district, relief has been extended to include an order for the removal of the building or structure." County of Columbia v. Bylewski, 94 Wis. 2d 153, 167, 288 *235N.W.2d 129, 136 (1980) (quoting Town of Sterling v. Poulin, 316 N.E.2d 737, 739 (Mass. App. Ct. 1974)).