A sensitivity method for ice floe trajectory calculations