Complex sentence: When the boss figures this out, Stanley loses his job--an especially troubling development, as Stanley has just had to put his father in a retirement home.
Split into simpler sentences: When the boss figures this out, Stanley loses his job. The loss of his job is an especially troubling development, as Stanley has just had to put his father in a retirement home.