changed pin color
formula to calculate battery range