We present theoretical studies of condensation of indirect excitons in a trap. Our model quantifies the effect of screening of the trap potential by indirect excitons on exciton condensation. The theoretical studies are applied to a system of indirect excitons in a GaAs/AlGaAs coupled quantum well structure in a diamond-shaped electrostatic trap where exciton condensation was studied in earlier experiments. The estimated condensation temperature of the indirect excitons in the trap reaches hundreds of milliKelvin.