Any local changes (aka commits) before opening the the merge request will be accounted for when calculating the lead time for changes. Indeed, if you made multiple code changes and commits locally before opening the merge request, that time will be considered as coding time in the lead time for change where the oldest change (commit) is considered the start the coding time.