Calculate nth term in Fibonacci sequence