Pressure and rate analysis in unconventional reservoirs