Is there a setting to limit amount of data used?

On my iPhone I was trying to find a setting to we're it limits my data when I'm almost over I know there's a way I just can't find it and don't know how to do it

If you have an iPhone there's no setting to do that. On an Android, however, the option for that would be under the settings icon.