Rule reminder
Use 'da' + present tense for an ongoing situation (started in the past, still happening). Use 'per' + past tense for a completed period. Example: Studio italiano da due anni. (still studying) / Ho studiato per due ore. (finished)
Ho lavorato in quella fabbrica ___ cinque anni. (I no longer work there.)