Added voltage calculation