When the day starts
Firms count the day from a reset time they publish, often midnight in a named time zone. Some measure the loss from the balance at that moment, others from the higher of balance and equity.
Percent or dollars
CFD firms tend to publish the limit as a percent of the account. Futures firms often give it in dollars for each account size, so the same rule reads differently from one market to the other.
Open trades count
In many models the limit includes floating losses on open positions. A trade that would have closed the day green can still end the account if it dips past the limit on the way.