A computer algorithm for calculating the adequacy of antidepressant treatment in unipolar and bipolar depression.