You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
For the molecule named N-[1-[3-(4-bromophenyl)-4-oxoquinazolin-2-yl]propyl]-N-[2-(dimethylamino)ethyl]-4-methylbenzamide by IUPAC nomenclature, provide its molecular formula.
user
C29H31BrN4O2
assistant