Such is the nature of software development. You can't predict the presence of bugs/issues, nor predict how long they will set you back. And ensuring platform independence can be a real pain, full of unexpected issues.
When estimating how long a task will take me, I always multiply by pi - that...