Freelance Web Developer Costing

Hi all,
Does anyone have any formula on how to charge a client for a particular job? I have seen somewhere before on the net about how to charge your client for the job but I can’t seem to find it anymore. If anyone know, please let me know. Thanks.