Section II
INSTITUTING CRIMINAL PROCEEDINGS, INQUIRY, AND PRE-TRIAL INVESTIGATION
Chapter 13
MEASURES OF RESTRAINT
Article 156. Custody periods
Custody at the stage of pre-trial investigation may not last more than two months. Whenever it is impossible to complete investigation of a case within time-limit prescribed in paragraph 1 of the present Article and there are no grounds for revocation or substitution of this measure of restraint for a lighter one, custody may be extended:
1) up to four months – upon motion agreed with the prosecutor who supervises legality of proceedings conducted by inquiry and pre-trial investigation agencies, or by such prosecutor himself/ herself or by the judge of the court which made the decision to impose the measure of restraint;
2) up to nine months – upon motion agreed with the Deputy Prosecutor General of Ukraine, prosecutor of the Autonomous Republic of Crimea, oblast, cities of Kyiv and Sevastopol and prosecutors assimilated to them, or by such prosecutor himself/ herself in cases related to crimes of grave and especially grave severity, by the justice of the Court of Appeals;
3) up to eighteen months – upon motion agreed with the Prosecutor - General of Ukraine, his/her deputy or by such prosecutor himself/ herself in very complicated cases related to crimes of grave and especially grave severity, by a justice of High Civil and Criminal Court of Ukraine.
Fair trial standards
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.