calculating the risk correctly now, fixed table color issue in the result page