Better yet, you should give quotes for the whole project, regardless of time spent. If you spend less time than anticipated, good for you; if you spend more time than anticipated, you bear the cost.
But here's the thing: most clients have NO IDEA how much work goes into a specific task. If you bill by the hour, they will want their money's worth of your time. If however your quotes are for the whole project, the only relevant metric becomes "is the project done?"
For this to work, the project has to be specified with a reasonable amount of precision that allows one to check at the end whether it's done or not; but this extra work of specification pays off big time -- even, I might add, if you have to do it yourself for free, as part of the sales process.