In a casino, it's usually along the lines of 10% of the pot up to a certain amount (usually $4-$6 for 1/2 NL). If the stakes are higher, sometimes they'll do a time rake where each player pays every hour or half hour.
$10 out of the pot at a 1/2 NL game seems extremely steep...