Sub Days_to_Milliseconds(days As Int) As Long
'24 * 60 * 60 * 1000 = 86400000
Return (days * 86400000)
End Sub
Log(DateTime.Date(DateTime.Now + Days_to_Milliseconds(100))
...but both solutions above are way more straight forward.
Knowing @Erel as a big fan of DateUtils, I thought maybe I add this solution to the good solutions listed in the previous posts above:
B4X:
Dim p As Period
p.Days = 100
Dim nextdate As Long = DateUtils.AddPeriod(DateTime.DateParse("09/03/2016"), p) 'adds 100 days to this date
Log($"next date: $Date{nextdate}"$) 'or Log("Next date: " & DateTime.Date(nextdate))