To edit a function metric, you need to copy the metric to the formula builder by clicking the copy icon at the bottom right of any metric:
This will rebuild that metric in the formula builder. You will now be able to adjust variables, such as time period (n).
This process is used for editing function metrics because functions manipulate data over time. To change the time period for calculation you must create a new metric.