Trying to make fraction calculation