Converted standard-resistance-calculator to candy-calc framework.