How to handle clicking on tiled map

Hey guys I’m wondering how I can check where the user clicked on a tiled map with consideration that the camera will not be overviewing the whole map but only a portion of it that the user is currently in.

Basically I want to know how I can detect the X , Y coordinates of where the user clicks depending on where they are on the map.