Hi Evert and welcome to the forums!
On the OnAfterChange event of the field that the user inputs to, try this code:
DateTime f1 = DateTime.Parse(e.Source.text);
DateTime f2 = f1.AddMinutes(-15);
thisXDocument.DOM.selectSingleNode("/my:myFields/my:field2").text = f2.ToShortTimeString();
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge