calculations

worked on calculations and display. SOS is being calculated incorrectly.
Need to check into that.