How long does it take to set up Japan office/entity?

In the case of a representative office, it takes about a few weeks. For a subsidiary company, it takes about a few months after determination of particulars of a company to be established.