cainteoir_document: create an estimate duration api