Marginal Relief Calculation In Html