The period of oscillation of a simple pendulum of length L suspended from the roof of a vehicle which moves without friction down an inclined plane of inclination a, is given by
See the following force diagram
Vehicle is moving down the frictionless inclined surface so, it's acceleration is g sin θ. Since vehicle is accelerating, a pseudo force m(g sin θ) will act on bob of pendulum which cancel the sin θ component of weight of the bob.
Hence net force on the bob is Fnet=mg cos θ or net acceleration of the bob is geff=g cos θ
∴ Time period T=2π√1geff=2π √1g cos θ