How demat charges be calculated

How are Demat account charges structured or calculated?,