How is DPS calculated?

DPS is calculated using Path of Building Community Fork.