A device can have multiple deployments - non-overlapping in time, and some maybe historic. You need to look at the deployment with current time in time period.