If a bug crawls 2cm up and 1cm down each day how long does it take for the bug to reach the top of a 12cm jar

11 days

It progresses 1 cm per day. On day 11 it goes up 2 cm and is at the top.