Pressure buildup test analysis in wells with sustained casing pressure