medications_remaining function

Calculate remaining medications to be taken