\documentclass{article} 

\usepackage{amsmath,latexsym,amsfonts}  
\usepackage[T1]{fontenc}
\usepackage[swedish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\setlength{\parindent}{0pt}
\setlength{\textwidth}{165mm}
\setlength{\textheight}{260mm}
\setlength{\hoffset}{-25mm}
\setlength{\voffset}{-20mm}


%%%%%%%%%%% ----------------  ONLY CHANGE THIS PART ------------------ %%%%%%%%%%%

\newcommand{\Title}{title}        %Title of the thesis
\newcommand{\Author}{first name last name}      %Name of the student
\newcommand{\Year}{2017}  %Year
\newcommand{\No}{5}            %Number
\newcommand{\Handl}{supervisor}        %Supervisor
\newcommand{\Pt}{15}             %ECTS credits: 15 if bachelor, 30 if master
\newcommand{\kurs}{grundnivå}          %Level: `grundnivå' if bachelor, `avancerad nivå' if master

%%%%%%%%%%% -------------------------------------------------------------------- %%%%%%%%%%%

\begin{document}
    
\pagestyle{empty}
    
\begin{center}
\includegraphics[width=3cm]{logo}
\end{center}

\vspace{4cm}

\begin{center}
\textbf{\LARGE{SJÄLVSTÄNDIGA ARBETEN I MATEMATIK}}\\
\vspace{3mm}
\textbf{\footnotesize{MATEMATISKA INSTITUTIONEN, STOCKHOLMS UNIVERSITET}}\\
\vspace{4cm}
\Large{
\textbf{\Title}}\\
\vspace{2cm}
\large{av\\
\vspace{4mm}
\textbf{\Author}\\
\vspace{8mm}
\Year\ - No \No
}
\vfill
\footnotesize{MATEMATISKA INSTITUTIONEN, STOCKHOLMS UNIVERSITET, 106 91 STOCKHOLM} 
\end{center}
\vskip .5cm

\newpage
\
\newpage
\phantom{a}
\vspace{8cm}
\begin{center}
\LARGE{\Title}\\
\vspace{2cm}
\large{\Author}\\
\vskip 8cm
\rule{11cm}{.06mm}\\
\vspace{5mm}

Självständigt arbete i  
matematik \Pt\ högskolepoäng, \kurs\\
\vspace{5mm}
Handledare: \Handl\\
\vspace{5mm}
\Year\\
\vspace{2.5cm}
\end{center}

\newpage
\
    
\end{document}

