calculation almost work. need to finish result page