\documentclass[]{article}
\usepackage{tikz}
\usepackage{amssymb}
\begin{document}
%---------------------------------------------------------
\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (10,0);
\draw[|-|]
(A)
node at (A) [above=5pt,color =green] {$P_{t,M}$}
node at (A) [below=5pt,color =green] {$t$}
--
(B)
node at (B) [above=5pt,color =green] {$N$}
node at (B) [below=5pt,color =green] {$t + M$};
\end{tikzpicture}
%---------------------------------------------------------
\end{document}