Added voltage divider calculation