Assuming an HST rate of 13% you can use this equation:
Total Revenue x 13 (HST percentage) / 113 = HST Collected
So if you have revenue of $30,000 this would be:
$30,000 x 13 / 113 = $3,451.33 HST
Thanks Jocelyn!