Hi,
Your VM needs to say Stopped (deallocated) in order to not be charged for Compute. Please note that even when VM is Deallocated you will still be charged for its disk(s), public IP address (if exists), and other related resources.
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP