In parliamentary system elections are held sometimes on decided dates, say four years or five. But when the prime minister loses the confidence of the house or resigns than the president will designate a new prime minister to form a new government. But if this person is unable to form than the chance is given to someone else, if all fails than elections are called. But in Pashinyan's case he didn't want to form a new government without a new elections and the house went along with it, therefore we'll have an election. I hope this was clear.