Check out example codes for "substract variable amount of minutes from timestamp postgresql". It will help you in understanding the concepts better.

Code Example 1

SELECT p.date_time + number_of_seconds * INTERVAL '1 second'
    FROM photo p 
    WHERE p.id = 1;

Learn ReactJs, React Native from akashmittal.com