How about a formula?
Lost income (based on reasonable assumptions regarding the person's economic prospects) + compensation for pain, suffering and psychoemotional trauma caused by imprisonment (based on precedents in similar cases) + compensation for loss of liberty and enjoyment of life (based on precedents in other cases, and including loss of opportunity to start a family) + compensation for damaging the person's reputation (based on precedents in other cases) - living expenses while imprisoned (based on what they would reasonably have been, had the person had to live on his own "on the outside").
Plugging real numbers into this formula would require information I don't have and can't easily get.