A good rule of thumb is to figure out how much you'd get paid in salary to do that if that were your job, and charge 2x to 3x for short-term work.
For example, if you would make $90,000pa, you'd charge $90 - $135 per hour.
That may sound like a lot but there are lots of reasons for this. Salaries have lots of stuff inbuilt like (some) security about hours, insurances (health, unemployment, professional indemnity, public liability, etc), sick leave, maternity leave, annual leave, long service leave (depending on your country), bonuses, provision of equipment and work space (where you might otherwise have to provide your own), pension/retirement funding, allowances (car, phone, laptop, etc), status, respect from coworkers, etc.
These things need to be factored in when pricing your services. Any reasonable employer will realize that casual employment is more expensive than full time employment because the employer only needs your services for possibly a day so you (instead of the employer) are wearing the risk and paying the costs.