The VWAP function computes the volume-weighted average price of a traded item (usually an equity share) for each time interval in a series of equal-length time intervals.
Where sum applies to the current time interval:
VWAP = sum(volume*price)/sum(volume)