Fixed dividing by 0 and Added Error Message

Error Message for leaving numbers blank.