The calculation of custom weights involves several steps. Initially, base weights are assigned based on the inverse probability of selection. These weights are then adjusted for non-response by using auxiliary information that predicts response likelihood. Finally, post-stratification adjustments are made to align the weighted sample distribution with known population totals. This process often involves iterative techniques and may require the use of complex statistical software.