> If you're doing the equivalent of 1 day of work over 5 days, and it's OK to your manager
As developers, we want our managers to trust us. We don't want managers to micro- us and question our time estimates. If I say doing some task will take X weeks, I don't want management to say "do it faster". The manager doesn't know the technical details and complications like the developer does.
Here, OP is explicitly abusing that trust, taking most of the week off but pretending to be working. He/she is meeting expectations by misrepresenting the complexity and difficulty of the work.
One thing I wish I learned earlier in life is that your career is your responsibility, not your manager's, not your company's. I spent way to many of my early years asking "What tickets should I work on now, boss?" and too few asking myself "Where do I want to take my career long term, and what steps do I take now, next year, and next 5 years, to get there?"