Substract variable amount of minutes from timestamp postgresql