Colrain CPA Contribution Calculator

Colrain Covered Bridge

Use our calculator to figure out how much CPA will cost you if voters approve CPA. You will need to find the assessed 'Total Value' from your tax bill.

Enter the 'Tot Tax Val' from your tax bill and then click on the 'Compute CPA Contribution' button.':

import re def write_to_page(): # 2022 tax rate for Colrain taxRate = 19.63 deduction = 100000 CPATax = 0 val = Element('input-text').element.value val = re.sub('[$,]',"",val) try: if isinstance(int(val), int): val = int(val) if val - 100000 <= 0: CPATax = 0 else: CPATax = ((val - 100000) * taxRate / 1000) * .03 # print (round(CPATax, 2)) toDollars(CPATax) except ValueError: manual_div = Element("manual-write") manual_div.element.innerHTML = "

Input is not an integer. Please try again.

" def toDollars(v): number_string = v # Use ',', no cents, combined along with the currency symbol(in this case $) currency_string = "${:,.0f}".format(number_string) manual_div = Element("manual-write") manual_div.element.innerHTML = "

Your CPA contribution is: " + currency_string + "

"