Assuming that the input and output is defined the answer is roughly 100%. Usually I break it afterwards by refactoring and cleaning it up.
but the PoC usually always works on the first attempt. But I guess you would have to add 'in a language your proficient' because I guess my rates would plummet if I would write such things in a language I don't know or understand.