All this was used to calculate what percentage of time people spent in an unpleasant state.
⇑ Translate the sentence above by Google ⇑
Related: percentage, calculate