How do you create a single button to perform action and navigation?

I am new at using SwiftUI with Xcode. I am trying to make a simple button (in ContentView.swift file) that performs an action (mathematical calculations), then moves to a second content view page. It seems I should be combining a Button action call then a NavigationLink.

How do I do this with just one button?