The time-weighted average (TWA) is the average of a number of representative measurements that are taken over a period of time and that are calculated as follows: