Gravar-mail: Computing maximal dual-feasible functions using a novel approach