Consider four processes with a burst time of $10, 20, 30, 40$ all process arrived at time $0$. Each process spends first $10$% of its execution time doing $i/0$, next $40$% time doing CPU operations, next $20$% time doing $I/0$ and the last $30$% time doing CPU operations. The system uses shortest remaining time next algorithm for scheduling. Calculate the completion time of $P3$?